home *** CD-ROM | disk | FTP | other *** search
- Path: camelot.dsccc.com!not-for-mail
- From: kcline@sun132.spd.dsccc.com (Kevin Cline)
- Newsgroups: comp.lang.c++
- Subject: Sun compiler bug?
- Date: 29 Jan 1996 16:07:49 -0600
- Organization: DSC Communications Corporation Switch Products Division
- Message-ID: <4ejgfl$938@sun132.spd.dsccc.com>
- NNTP-Posting-Host: sun132.spd.dsccc.com
-
- The Sun version 4 compiler won't compile this:
-
- class X {
- typedef int T;
- };
-
- enum E { T = 0 };
-
- It complains:
- "foo.C", line 5: Error: Multiple declaration for T.
-
- Is this a bug, or is am I misunderstanding the scoping rules?
-
- Thanks.
- --
- Kevin Cline
-